<template>
	<view class="operations">
		<view class="operationtext fs-24">选择当前需进行的农事操作，可多选</view>
		<view class="bgstyle operation">
			<view class="item fs-24" :class="{ act: d.ischeck }" v-for="(d, index) in list" :key="d.id">
				<view class="name">{{ d.name }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"uni-operations",
		props:{
			list:{
				type:Array,
				default:()=>[
					{ name: '巡园', id: 1, ischeck: true },
				]
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.operations{
		margin:  0 30rpx;
	}
.operationtext {
		color: #8e8e8e;
		margin-bottom: 14rpx;
		margin-top: 15rpx;
	}
	.operation {
		padding: 20rpx 16rpx 0;
		display: grid;
		grid-template-columns: repeat(auto-fill, 23%);
		justify-content: space-between;
		background: #fff;
		.item {
			text-align: center;
			border: 1px solid #64c533;
			color: #64c533;
			border-radius: 6rpx;
			background: #edffe4;
			margin-bottom: 20rpx;
			height: 60rpx;
			line-height: 60rpx;
		}
		.act {
			background: #64c533;
			border-color: #64c533;
			color: #fff;
		}
	}
</style>